package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class FeedFriendsBean implements Serializable ,IJsonParser{

	/**
	 * NEWSFEED_VERB_TOPIC_CREATED = 5 # 主题创建动态
	 *  NEWSFEED_VERB_GROUP_JOINED = 6 #  圈子加入动态 
	 *  NEWSFEED_VERB_FRIEND_FOLLOWED = 7 # 关注其他用户
	 */
	private static final long serialVersionUID = -9076074844980239940L;
	private UserActorBean actor ;
	private String created_time ;
	private ExtraContextBean extra_context ;
	private int verb;
	public UserActorBean getActor() {
		return actor;
	}
	public void setActor(UserActorBean actor) {
		this.actor = actor;
	}
	public String getCreated_time() {
		return created_time;
	}
	public void setCreated_time(String created_time) {
		this.created_time = created_time;
	}
	public ExtraContextBean getExtra_context() {
		return extra_context;
	}
	public void setExtra_context(ExtraContextBean extra_context) {
		this.extra_context = extra_context;
	}
	public int getVerb() {
		return verb;
	}
	public void setVerb(int verb) {
		this.verb = verb;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, FeedFriendsBean.class);
		}
		return null;
	}

}
